package com.tomato.commons.email;

import lombok.Getter;
import lombok.Setter;

import java.util.Properties;


@Getter
@Setter
public class EmailUtils {

    private EmailType type;

    /**
     * email 邮箱服务器信息
     */
    private Properties emailServerInfo;

    /**
     * 发件人邮箱名
     */
    private String sender;

    /**
     * 邮箱密码,如果是qq邮箱则是授权码
     */
    private String password;


    /**
     * 发送的邮件信息
     */
    private EmailMessage message;

    public static EmailBuilder builder() {
        return new EmailBuilder();
    }

}
